package com.cdm.forum.dao;

import com.cdm.forum.model.ArticleReply;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleReplyMapper {
    int insert(ArticleReply record);

    int insertSelective(ArticleReply record);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply record);

    int updateByPrimaryKey(ArticleReply record);

    /**
     * 根据帖子id查找帖子所有回复
     * @param articleId 帖子id查、
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);
}